package com.club.football.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.club.football.dto.EventsSaveDto;
import com.club.football.dto.PageDto;
import com.club.football.entity.Events;
import com.club.football.req.EventsPageReq;
import com.club.football.utils.R;
import com.club.football.vo.EventsPageVo;
import com.club.football.vo.EventsVo;

/**
 * 赛事服务
 *
 * @author 1
 * @date 2024/01/09
 */
public interface EventsService extends IService<Events> {
    /**
     * 比赛扑救
     *
     * @param saveDto 将数据保存到
     * @return {@link R}<{@link String}>
     */
    R<String> eventsSave(EventsSaveDto saveDto);

    /**
     * 匹配页面
     *
     * @param pageDto      页数到页
     * @param eventsPageReq 匹配页面请求
     * @return {@link R}<{@link PageDto}<{@link Events}>>
     */
    R<PageDto<EventsPageVo>> eventsPage(PageDto<Events> pageDto, EventsPageReq eventsPageReq);


    /**
     * 活动信息
     *
     * @param id ID
     * @return {@link R}<{@link EventsVo}>
     */
    R<EventsVo> eventsInfo(Long id);
}
